import request from '@/utils/request'

// 查询公积金计提列表
export function listGjjjt(query) {
  return request({
    url: '/basebill/gjjjt/list',
    method: 'get',
    params: query
  })
}

// 查询公积金计提详细
export function getGjjjt(fid) {
  return request({
    url: '/basebill/gjjjt/' + fid,
    method: 'get'
  })
}

// 新增公积金计提
export function addGjjjt(data) {
  return request({
    url: '/basebill/gjjjt',
    method: 'post',
    data: data
  })
}

// 修改公积金计提
export function updateGjjjt(data) {
  return request({
    url: '/basebill/gjjjt',
    method: 'put',
    data: data
  })
}

// 删除公积金计提
export function delGjjjt(fid) {
  return request({
    url: '/basebill/gjjjt/' + fid,
    method: 'delete'
  })
}

// 调用eas接口
export function importGjjjt(fids) {
  return request({
    url: '/basebill/gjjjt/importGjjjt/' + fids,
    method: 'get'
  })
}
